package com.stedu.mapper;

import com.stedu.bean.Cars;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CarsMapper {

    //添加
    int insert(Cars c);
    //根据cid删除
    int delete( int cid);
    //根据cid修改
    int update(Cars c);
    int updateCstate(@Param("cstate") String cstate,@Param("cid") Integer cid);
    Cars selectByMid(int mid);
    //根据cid查询
    Cars selectBycid(int cid);
    //根据车牌号查询
    String selectCplate( String cplate);
    //根据name查询  //分页查询
    List<Cars> selectBycplate(@Param("cplate")String cplate,@Param("cstate") String cstate);
}
